package StudentAndManagerTest;

public class StudentTest {
    public static void main(String[] args) {
        Manager manager = new Manager();
        manager.addStudent(new Students("张三", 20));
        manager.addStudent(new Students("李四", 22));
        manager.addStudent(new Students("王五", 19));
        manager.addStudent(new Students("赵六", 21));
        manager.addStudent(new Students("田七", 23));
        //嵌套类
        manager.showStudent(new Manager.StudentSorter(1));
    }
}
